package com.itboy.mall.sms.skufullreduction.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;


import java.math.BigDecimal;

/**
 * 商品满减信息添加对象 mall_sku_full_reduction
 *
 * @author itboy
 * @date 2021-08-08
 */
@Data
@ApiModel("商品满减信息添加对象")
public class MallSkuFullReductionAddBo {


    /**
     * spu_id
     */
    @ApiModelProperty("spu_id")
    @NotNull(message = "spu_id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 满多少
     */
    @ApiModelProperty("满多少")
    private BigDecimal fullPrice;

    /**
     * 减多少
     */
    @ApiModelProperty("减多少")
    private BigDecimal reducePrice;

    /**
     * 是否参与其他优惠
     */
    @ApiModelProperty("是否参与其他优惠")
    private Integer addOther;
}
